import request from '@/utils/request'

// 查询列表
export function getList(current, limit, data) {
  return request({
    url: `/admin/hosp/hospitalSet/findPageHospSet/${current}/${limit}`,
    method: 'post',
    data: data
  })
}
// 删除医院
export function deleteHospSet(id) {
  return request({
    url: `/admin/hosp/hospitalSet/${id}`,
    method: 'delete',
  })
}
// 批量删除医院
export function deleteHospSetByIds(ids) {
  return request({
    url: `/admin/hosp/hospitalSet/batchRemove`,
    method: 'delete',
    data: ids
  })
}
// 锁定医院
export function lockHospSet(id,status) {
  return request ({
    url: `/admin/hosp/hospitalSet/lockHospitalSet/${id}/${status}`,
    method: 'put'
  })
}
// 添加医院设置
export function saveHospSet(hospitalSet) {
  return request ({
    url: `/admin/hosp/hospitalSet/saveHospitalSet`,
    method: 'post',
    data: hospitalSet
  })
}
//院设置id查询
export function getHospSet(id) {
  return request ({
    url: `/admin/hosp/hospitalSet/getHospSet/${id}`,
    method: 'get'
  })
}

//修改医院设置
export function updateHospSet(hospitalSet) {
  return request ({
    url: `/admin/hosp/hospitalSet/updateHospitalSet`,
    method: 'post',
    data: hospitalSet
  })
}


